package com.iot.ammeter.entity.android.bill;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_bill")
@ApiModel(value = "AppBill对象", description = "费用账单表")
public class Bill {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "费用单id")
    @TableId
    private String billId;

    @ApiModelProperty(value = "0未缴费，1已缴费")
    private String paid;

    @ApiModelProperty(value = "缴费时间")
    private String paidDate;

    @ApiModelProperty(value = "账户余额id")
    private String balanceId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "设备id，唯一识别码")
    private String equipmentIdentifier;

    @ApiModelProperty(value = "app端用户id")
    private String appUserId;

    @ApiModelProperty(value = "app端用户手机")
    private String appUserPhone;
}
